#!/bin/sh
#
# Run a simple connection test
#   with the tray-monitor.
#
export estat
TestName="tray-monitor-connection-test-cleartext"
. scripts/functions

scripts/cleanup
copy_configs

tray_monitor_binary="${bin}/susan-tray-monitor"

start_test

# check if tray-monitor binary was built
if [ ! -f ${tray_monitor_binary} ]; then
    set_error "Could not find executable ${tray_monitor_binary}"
    end_test
    exit 1
fi

run_susan
${tray_monitor_binary} -rc -c ${bin}/tray-monitor.conf
estat=$?
stop_susan

end_test

